package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "dr_e_hospital")
public class DrEHospital implements Serializable {

    /**
     * 数据有效
     */
    public static final Integer VALID = 0;
    /**
     * 数据无效
     */
    public static final Integer NO_VALID = 1;

    private static final long serialVersionUID = -7994869102974818898L;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id")
    private Long id;// 主键

    @Column(name = "doctor_id")
    private Long doctorId;// 医生ID

    @Column(name = "e_hospital_id")
    private Long eHospitalId;// 互联网医院ID

    @Column(name = "created_at")
    private Date createdAt;// 创建时间

    @Column(name = "changed_at")
    private Date changedAt;// 更改时间

    @Column(name = "created_by")
    private String createdBy;// 创建者

    @Column(name = "changed_by")
    private String changedBy;// 修改人

    @Column(name = "valid")
    private Integer valid;// 此记录是否有效，0有效，1无效

    public DrEHospital() {
    }

    public DrEHospital(Long doctorId, Long eHospitalId, Date createdAt, Date changedAt, String createdBy, String changedBy, Integer valid) {
        this.doctorId = doctorId;
        this.eHospitalId = eHospitalId;
        this.createdAt = createdAt;
        this.changedAt = changedAt;
        this.createdBy = createdBy;
        this.changedBy = changedBy;
        this.valid = valid;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDoctorId() {
        return this.doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public Long geteHospitalId() {
        return this.eHospitalId;
    }

    public void seteHospitalId(Long eHospitalId) {
        this.eHospitalId = eHospitalId;
    }

    public Date getCreatedAt() {
        return this.createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getChangedAt() {
        return this.changedAt;
    }

    public void setChangedAt(Date changedAt) {
        this.changedAt = changedAt;
    }

    public String getCreatedBy() {
        return this.createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getChangedBy() {
        return this.changedBy;
    }

    public void setChangedBy(String changedBy) {
        this.changedBy = changedBy;
    }

    public Integer getValid() {
        return this.valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }
}
